home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 January / macformat-020.iso / Shareware City / Developers / Commander Sets / 4D Speech Pack / 4D Speech Pack.rsrc / TEXT_20452_†SP Count Voices.txt < prev    next >
Encoding:
Text File  |  1994-09-14  |  833 b   |  26 lines

  1. SP Count voices -> count
  2.  
  3. count          integer       returns how many voices are currently installed
  4.                                     in your application and/or System Folder. When
  5.                                     no Speech Manager is available this function
  6.                                     returns zero.
  7.  
  8. Returns the number of voices currently installed and available to the external.
  9.  
  10. The returned value can be used as the maximum index number which you can pass to SP Voicename.
  11.  
  12. Examples:
  13.   $count := SP Count voices
  14.  
  15.   ALERT ("There are " + String(SP Count voices) +
  16.                 " voice(s) installed.")
  17.  
  18.   `since this number can be used as a limit of the index needed with
  19.   `the Voicename function:
  20.   For ($i;1;SP Count voices)
  21.     `do something here, like:
  22.     $err := SP Voicename ($i;$voicename)
  23.   End for
  24.  
  25.  
  26.